//纯方法进行状态的描述
const Login = (state = {authority:null},action)=>{
    switch(action.type){
        case 'authority':
            console.log(action)
            return Object.assign({},state,{
                authority:action.payload
            });
            break;
        case 'o':
            return Object.assign({},state,{
                outher:false
            });
        default:return state;
    }
};
export default Login;